#ifndef _FEnergy_H
#define _FEnergy_H

#include "ObjectiveFunction.h"
#include "../../Energy/PotFitter.h"


class FEnergy:public ObjectiveFunction
{
public:
	FEnergy(PotFitter* fit);
	~FEnergy();

// <identifier>
	virtual const string equation()
	{
		return "RMS";
	}
	virtual const string classname()
	{
		return "Energy";
	}
// </identifier>

private:
	virtual double evaluate_( vector<double>& x );
	virtual vector<double> gradient_( vector<double>& x );	

	PotFitter* fit;
};

#endif
